home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kit PC World De Ampliacion De Windows 95
/
Kit PC World de ampliacion de Windows 95.iso
/
lotus
/
lotus025.dsk
/
MODAL.LSS
< prev
next >
Wrap
Text File
|
1995-08-08
|
1KB
|
34 lines
%REM
This template demonstrates creating a Modal Dialog Box.
You will need to use the Lotus Dialog Editor to create the Dialog Box.
1. With your cursor in the main document, select Edit/ Scripts & Macros/ New Custom Dialog.
2. Paste your Custom Dialog Box into the new section
3. Change the Section tab to the name you will use to reference the dialog.
4. Modify the code below as needed for your application.
%ENDREM
Dim Dlg As LWPCustomDialog
If not (Dlg is Nothing) then
Delete Dlg
End If
Set Dlg = Bind("!NameOfDialog")
%REM
If you have any values that need to be inserted into the dialog prior to displaying, use the following
Methods:
Dlg.AddListBoxText( Control_ID, Text )
Dlg.SetControlText( Control_ID, Text )
Dlg.SetControlValue( Control_ID, Value )
This line fills and edit box with some default text
Dlg.SetControlText 8000, "Type Company Name Here"
This line sets a radio button to selected
Dlg.SetControlValue 20, True
%EndRem
RtnValue% = Dlg.Show(1)
If RtnValue% = 1 Then
Messagebox Dlg.GetControlText( 8000)
End If